<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="app">
    <span v-once>只变一次{{this.count}} 子节点元素变化:<span>{{this.childCount}}</span></span><br/>
    <span>1s变一次{{this.count}}</span>
</div>

<script>
    const nodeOption = {
        data(){
            return {
                count: 1,
                childCount: 1
            }
        },

        created(){
            setInterval(()=>{this.count++; this.childCount++}, 1000)
        }
    }

    Vue.createApp(nodeOption).mount('#app');

</script>

</body>
</html>
